package com.ruihu.admin.module.business.tasknode.converter;

import com.ruihu.admin.module.business.tasknode.domain.dto.TaskNodeFileDTO;
import com.ruihu.admin.module.business.tasknode.domain.vo.TaskNodeFileVO;

import java.util.ArrayList;
import java.util.List;

public class TaskNodeFileList {

    public static List<TaskNodeFileVO> convertDTOToTaskNodeFileVOList(List<TaskNodeFileDTO> taskNodeFileDTOList) {
        List<TaskNodeFileVO> taskNodeFileVOList = new ArrayList<>(taskNodeFileDTOList.size());
        taskNodeFileDTOList.forEach(taskNodeFileDTO -> taskNodeFileVOList.add(TaskNodeFileVO.convertToTaskNodeFile(taskNodeFileDTO)));
        return taskNodeFileVOList;
    }
}
